package net.wofly.sale.report.service;

import java.util.List;

import net.wofly.sale.report.domain.CardExchangeDailyReport;

public interface ICardExchangeDailyReportService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public CardExchangeDailyReport save(CardExchangeDailyReport entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	public void delete(CardExchangeDailyReport entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	public void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	public CardExchangeDailyReport findOne(String key);
	
	public List<CardExchangeDailyReport> save(List<CardExchangeDailyReport> entityList) ;
	
	/**
	 * 根据时间生成日报
	 * @param countDate
	 */
	public void generateCardExchangeDailyReport(Long countDate);

	/**
	 * 根据用户ID和汇总日期查询卡兑换日报
	 *
	 * @param userID
	 * @param countDate
     * @return
     */
	List<CardExchangeDailyReport> findByUserIDAndCountDate(String userID, Long countDate);
}
